home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung / Power-Programmierung (Tewi)(1994).iso / magazine / pcmagazi / 1992 / 18 / maketime.doc < prev    next >
Text File  |  1992-10-26  |  5KB  |  121 lines

  1. This file, MAKETIME.DOC, is primarily designed to assist you in recompiling
  2. WTIME. Instructions are given here for compilation using Borland
  3. C++ 3.0, Borland's Turbo C++ for Windows 3.0, Microsoft's C/C++ 7.0, and
  4. Microsoft's Quick C for Windows 1.00.
  5.  
  6. It should not be difficult to port this code to other platforms, especially
  7. Borland C++ 2.0, Microsoft C 6.0, Microsoft C 5.1, and Zortech C++ 3.0.
  8. If you port to Zortech, you may have a bit of work to do with the various
  9. time functions (mktime(), _dos_settime(), _dos_setdate(), localtime()).
  10.  
  11. --John Deurbrouck
  12.  
  13. ************************
  14. WTime Complete File List
  15. ************************
  16.     MAKETIME.DOC  This file, which explains how to create WTIME.HLP
  17.                   and WTIME.EXE from the other files
  18.     HELPPLAN.DOC  Help tracker file, organizational tool
  19.  
  20.     WTIME.DOC     WinWord 2.0 version of help file
  21.     WTIME.RTF     Help file in Rich Text Format
  22.     WTIME.BMP     WTime bitmap, used in help file
  23.     WTIME.HPJ     Help project file, used to make WTIME.HLP
  24.     WTIME.HLP     WTime Windows Help file
  25.  
  26.     WTIME.C       The C source that implements WTime
  27.     WTIME.H       Header file for WTime, #included into CONFIG.DLG,
  28.                   CONFIG.RC and WTIME.C
  29.     CONFIG.DLG    Produced by the Dialog Editor, it's #included
  30.                   into WTIME.RC to create WTIME.RES
  31.     WTIME.RC      Resource script for WTime
  32.     WTIME.ICO     Icon file used in the WTime executable
  33.     WTIME.DEF     Definition file for WTime
  34.     WTIME.EXE     WTime Windows executable
  35.  
  36. *********************************
  37. Compile instructions -- WTIME.HLP
  38. *********************************
  39.  
  40. You need the following files to compile the help:
  41.     WTIME.RTF
  42.     WTIME.BMP
  43.     WTIME.HPJ
  44. I used Microsoft's help compiler, version 3.00b. It's available if
  45. you GO MSL on CompuServe. It fixes problems older versions had with
  46. RTF files produced by WinWord 2.0.
  47.  
  48. The command line to produce WTIME.HLP is simply
  49.     HC WTIME.HPJ
  50. Note that you may have to change the 'ROOT' entry in WTIME.HPJ for
  51. the help compiler to run correctly.
  52.  
  53. *********************************
  54. Compile instructions -- WTIME.EXE
  55. *********************************
  56.  
  57. You need the following files to compile the executable program:
  58.     WTIME.ICO
  59.     WTIME.RC
  60.     WTIME.DEF
  61.     WTIME.H
  62.     WTIME.C
  63.     CONFIG.DLG
  64.  
  65. *** QuickC for Windows Instructions ***
  66.   * Start Quick C for Windows
  67.   * Do Project|Open, select the directory your files are in, give the
  68.     project a name (like WTIME.MAK), and click OK, answer 'Y'es to create
  69.   * In the Edit dialog box, change file type to All Files (*.*), then
  70.     double click on WTIME.C, WTIME.RC and WTIME.DEF, click OK
  71.   * Ensure Options|Project is set to Windows EXE. You can change anything
  72.     else around you want, like memory model, optimizations, etc.
  73.   * Choose Project|Rebuild all. When the compile's done, WTIME.EXE is
  74.     ready to go
  75.  
  76. *** Microsoft C 7 Instructions ***
  77.   * Start PWB
  78.   * Do Project|New Project, select the directory your files are in and
  79.     name your project (like C:\MYWTIME\WTIME to put it into the C:\MYWTIME
  80.     directory and call it WTIME), then set the project template for
  81.     C runtime support and Windows EXE, then select OK to get rid of the
  82.     New Project dialog box
  83.   * In the Edit Project box, double click on WTIME.C, WTIME.RC and
  84.     WTIME.DEF, click on Save List
  85.   * Select Project|Rebuild All. When the compile's done, WTIME.EXE is
  86.     ready to go. If you want to run it from PWB, don't forget to start
  87.     WXServer from the Program Manager
  88.  
  89. *** Turbo C++ for Windows Instructions ***
  90.   * Open a DOS window and change into the directory where your files
  91.     are stored. Enter this command line:
  92.         RC -r WTIME.RC
  93.   * Start TCW (comes with Borland C++ 3.0, or available by itself)
  94.   * Do Project|Open project, choose the directory your files are in
  95.     and type a project name (WTIME.PRJ will do), click OK
  96.   * Choose Project|Add item... In the File Name box, type *.* and hit
  97.     Enter, then double click on WTIME.C, WTIME.RC and WTIME.DEF, then
  98.     click the Done button
  99.   * Click Options|Application... and ensure the current settings include
  100.     linker output as Windows EXE, prolog/epilog as Windows all functions
  101.     exportable, model can be anything (I used small), and SS Equals DS
  102.     (default for memory model). Click OK when that's all right.
  103.   * Select Compile|Build all. You are *not* done when the Compile Status
  104.     box says Success. Click OK, then go back to your DOS box and enter
  105.     this command line:
  106.         RC -t WTIME.RES WTIME.EXE
  107.     Now the program is ready to go, and can be run from TCW by
  108.     pressing Control-F9
  109.  
  110. *** Borland C++ 3.0 Instructions ***
  111.   * Start BC
  112.   * Do Project|Open project, get your complete path and filename into the
  113.     top line of the dialog box (C:\MYWTIME\WTIME.PRJ is fine), then click
  114.     on OK
  115.   * Select Project|Add item..., enter *.* in the Name box and hit Enter,
  116.     then double click on WTIME.C, WTIME.RC and WTIME.DEF, then click Done
  117.   * Under Options|Application..., select Windows App and hit OK
  118.   * Select Compile|Build all. When the compile is done, the program is ready
  119.     to go. You cannot start WTIME.EXE from BC, even if you're running BC
  120.     in a window under Windows. Do a Program Manager File|Run, or run TDW
  121.